
//
//  liwushuoTableViewCell.m
//  UI20_作业礼物说
//
//  Created by 王阳阳 on 16/1/5.
//  Copyright © 2016年 www.lanou3g.com 蓝鸥科技. All rights reserved.
//

#import "liwushuoTableViewCell.h"

@implementation liwushuoTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        
        self.image1 = [[UIImageView alloc]init];
        [self.contentView addSubview:self.image1];
        
        self.label1 =  [[UILabel alloc]init];
        self.label1.textColor = [UIColor whiteColor];
        
        [self.image1 addSubview:self.label1];
        
        self.but1 = [UIButton buttonWithType:UIButtonTypeCustom];
        [self.image1 addSubview:self.but1];
        
        
        self.label2 = [[UILabel alloc]init];
        self.label2.textColor = [UIColor whiteColor];
        [self.image1 addSubview:self.label2];
        
        self.imageview1 = [[UIImageView alloc]init];
        [self.image1 addSubview:self.imageview1];
        
   
        
    }
    return self;
    
};

- (void)layoutSubviews
{
    [super layoutSubviews];
    self.image1.frame = CGRectMake(0, 0, 375, 180);
    self.but1.frame = CGRectMake(300, 30, 30, 30);
    self.label2.frame = CGRectMake(300, 50, 80, 30);
    [self.but1 setImage:[UIImage imageNamed:@"heart.png"] forState:UIControlStateNormal];
    
    self.label1.frame = CGRectMake(10, 150, 355, 30);
    self.label1.numberOfLines = 0;
    self.imageview1.frame = CGRectMake(0, 0, 50, 50);
    self.imageview1.image = [UIImage imageNamed:@"new.png"];
    
    
    
}


- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
